<%@ taglib prefix="s" uri="/struts-tags" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<div id="dialog-user" title="编辑用户" style="background:white">
	<div id="dialog-popup">
		<div class="sect">
			<s:action name="listCity" namespace="/" id="listCity"/>
			<s:form id="login_user_form" namespace="/admin" action="updateUser" method="post"
					theme="simple">
				<div class="wholetip clear">
					<h3>1、身份信息</h3>
				</div>
				<div class="field">
					<label for="txt_email">Email</label>
					<s:textfield id="txt_email" size="30" name="user.email"
								 cssClass="f-input" readonly="true"/>
				</div>
				<div class="field">
					<label for="txt_username">用户名</label>
					<s:textfield id="txt_username" size="16" name="user.username"
								 cssClass="f-input" readonly="true"/>
				</div>
				<div class="field">
					<label for="txt_realname">真实姓名</label>
					<s:textfield id="txt_realname" size="16" name="user.realname"
								 cssClass="f-input"/>
				</div>
				<div class="wholetip clear">
					<h3>2、基本信息</h3>
				</div>
				<div class="field">
					<label for="city">城市</label>
					<select class="tf-input" name="cityName">
						<s:iterator id="city" value="#listCity.cities">
							<s:if test="#cityName == #city.chnName">
								<option selected>
							</s:if>
							<s:else>
								<option>
							</s:else>
							<s:property value="#city.chnName"/></option>
						</s:iterator>
					</select>
				</div>
				<div class="field">
					<label for="txt_zipCode">邮政编码</label>
					<s:textfield id="txt_zipCode" size="10" name="user.zipCode"
								 cssClass="f-input"/>
				</div>
				<div class="field">
					<label for="txt_address">配送地址</label>
					<s:textfield id="txt_address" size="100" name="user.address"
								 cssClass="f-input"/>
				</div>
				<div class="field">
					<label for="txt_mobile">手机号码</label>
					<s:textfield id="txt_mobile" size="100" name="user.mobile"
								 cssClass="f-input"/>
				</div>
				<div class="wholetip clear">
					<h3>3、附加信息</h3>
				</div>

				<div class="field">
					<label>用户权限</label>
					<select name="accountInfo">
						<option>管理员</option>
						<option selected>普通用户</option>
					</select>
				</div>
				<s:submit value="保存" name="commit" id="submit" cssClass="formbutton"/>
			</s:form>
		</div>
	</div>
</div>